package ro.flashbite.loaders.events
{
	import ro.flashbite.interfaces.IDestroyable;
	
	import flash.events.Event;

	public final class AssetManagerEvent extends Event implements IDestroyable
	{
		public static const 		PROGRESS			:	String 	= "AssetManagerProgressEvent";
		public static const			ASSET_COMPLETE		:	String	= "AssetManagerOneAssetCompleteEvent";
		public static const			LOADING_COMPLETE	:	String	= "AssetManagerLoadingCompleteEvent"
		
		private var 				_data1				:	*;
		private var 				_data2				:	*;
		
		public function AssetManagerEvent(type:String, data1:* = null, data2:* = null)
		{
			super(type);
			
			_data1 = data1;
			_data2 = data2;
		}
		
		public function get data1():* { return _data1; }
		public function get data2():* { return _data2; }
		
		public function destroy():void
		{
			_data1 = null;
			_data1 = null;
		}
	}
}